export function getItem(key) {
    return JSON.parse(localStorage.getItem(key))
}

export function setItem(key,value){
    localStorage.setItem(key,JSON.stringify(value))
}

export function getDate(value){
    let date = new Date(value);
    return date.toLocaleDateString()
}
